import axios from '../axios/index.js'

//获取全部评论
export const comments = (page) => {
    return axios.get('/mp/v1_0/articles', {
        params: {
            response_type: 'comment',
            per_page:10,
            page:page
        }
    })
}

//修改评论状态
export const commentStatus = (status, id) => {
    return axios.put('/mp/v1_0/comments/status', {
        allow_comment: status
    }, {
            params: {
                article_id: id
            }
        })

}